-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Created create_invite_link.py #1558
Conversation
Added create_chat_invite_link() func example
Thank you! |
@devadvik Why don't check your code before make pull request? This code can't even start I decided to check and fix all the examples, and this one won't even start. You don't have to fix it yet, because I'm already in the process of fixing all sorts of examples. I'm wondering how the pool requests are checked |
@dannkunt What error are you getting? I'm literally running the same code for another group for about 2 weeks or so and it works perfetly fine. |
@devadvik |
Bad example. Please improve the example |
@dannkunt Oh yep, I wrote the import lines myself and then copied the rest. Seems like I forgot putting |
Do not forget to remove while True for polling, and threading module which is not used. |
@coder2020official Why is while loop for polling bad? |
@Badiboy I am already reworking examples, what if there was a virus in the example? How do you check pull requests? |
@dannkunt Code is checked for basic functionalities, just not thoroughly I guess. At a glance, you can determine if all the written lines are related to pyTelegramBotAPI and do stuff, but not enough to check minor mistakes. |
Added create_chat_invite_link() function example
Description
This is an example code on how to create invite links for groups automatically via bot
Describe your tests
1 week test using custom bot and a group, works like a charm
Python version: 3.9
OS: Ubuntu 22.04 LTS