-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Error when send notification #1929
Comments
Well, without actual error traceback, I can only guess, but the guess would be that you're hidding flood limits. We have a wiki page for that. Also, you may want to use |
so is there a proper way i can send notifications to all my users? |
And is there away i can delay messages? |
def notifsender(update,context):
print("notification")
global datanotif
datanotif = pd.read_csv("notif.csv")
global id_number
Link = datanotif['pic'].values
Link = str(Link[0])
text = datanotif['text'].values
text = str(text[0])
for i in list(id_number):
bot.send_photo(chat_id=i, photo=Link)
context.bot.send_message(chat_id=i, text=text) how can i edit this code so it would avoid Floodgate limit? |
thanks in advance :) |
As for flood limits: See my previous comment. Also, please don't comment like you're on an instant messenger. It clutters the thread and there are people, who receive an E-Mail every time you comment. |
Issue I am facing
When there are small amount of users i have no problem but when the amount gets larger like 50+ then i cant send notification
Traceback to the issue
my code takes the user id and puts it on a set
put it here
and when i send command /Notif
(my code takes notification and pic from file)
When there are like 10 users i can send notification to all the users but when i have 25 users its not sending notifications even to me
The text was updated successfully, but these errors were encountered: