Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change Text in Docker and Telegram setMyCommands API #124

Closed
oneandonlyjason opened this issue Jun 23, 2022 · 9 comments
Closed

Change Text in Docker and Telegram setMyCommands API #124

oneandonlyjason opened this issue Jun 23, 2022 · 9 comments
Assignees

Comments

@oneandonlyjason
Copy link

Hi, thank you for this Bot!

is there a way to change the Output of the Texts that the Bot sends in Docker? Like change the Help Text or something like this.

And maybe you could add the Telegram setMyCommands Method so that the Bot automatically registers its commands with Telegram
https://core.telegram.org/bots/api#setmycommands

@BennyThink BennyThink self-assigned this Jun 24, 2022
@BennyThink
Copy link
Member

Text is not supported out of the box. You need to manually edit constant.py and then commit your docker container.

setMyCommands seems like a good idea - will do.

BennyThink added a commit that referenced this issue Jun 24, 2022
@oneandonlyjason
Copy link
Author

After pulling the Latest Version the Bot doesnt replay anymore and the Console just Prints that the Bot seemded to crash after a while

@oneandonlyjason
Copy link
Author

@BennyThink This is the Error that the Logs show since i pulled the newest image

[2022-06-25 03:04:31 utils.py:209 W] Potential crash detected by idle_detector, it's time to commit suicide...
[2022-06-25 03:04:31 utils.py:224 C] Bye bye world!☠️
2022-06-25 03:04:32,377 INFO spawned: 'ytdl' with pid 51

@oneandonlyjason
Copy link
Author

oneandonlyjason commented Jun 24, 2022

Could maybe be this line?

Idk if the Readme.md exists inside the Docker Container

Edit: On seconds check he seems to sets the Commands just fine before he crashes....

@BennyThink
Copy link
Member

image

README.md exists in container.

I think it could be caused by auto_restart - this tasks will check for idle - i.e. if there's no incoming messages for a certain amount of time, the program will suicide and then start again.

@oneandonlyjason
Copy link
Author

The Problem is that there are incoming Messages the Bot just doesnt seems to notice?

image

@BennyThink
Copy link
Member

BennyThink commented Jun 26, 2022

Turns out it cannot run two instances - will revert a0c48d5

@BennyThink
Copy link
Member

Image is now pushed. Try again. It should work now

@oneandonlyjason
Copy link
Author

Yes it works, sadly we cant use the Function but better than crashing the Bot i guess

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants