Задать вопрос
@SAFDADWAEAWE

Есть ли кд на отправку подарков от имени бота?

Здравствуйте, у меня проблема, бот отправил 1 подарок а больше присылать не хочет, ограничения на 1го пользвателя или что?код и скриношты ниже

import telebot 
bot = telebot.TeleBot('8181600268=Jje8pwARoZKmDQxE') 
 
@bot.message_handler(commands=['start1'])  
def handle_start(message): 
 bot.send_gift(message.chat.id,5170690322832818290) 
bot.infinity_polling() 

@bot.message_handler(commands=['start2'])  
def handle_start(message): 
 bot.send_gift(message.chat.id,5170145012310081615) 
bot.infinity_polling() 

@bot.message_handler(commands=['start3'])  
def handle_start(message): 
 bot.send_gift(message.chat.id,5170690322832818290) 
bot.infinity_polling() 

@bot.message_handler(commands=['start4'])  
def handle_start(message): 
 bot.send_gift(message.chat.id,5170521118301225164) 
bot.infinity_polling() 

@bot.message_handler(commands=['start5'])  
def handle_start(message): 
 bot.send_gift(message.chat.id,5170690322832818290) 
bot.infinity_polling() 

@bot.message_handler(commands=['start6'])  
def handle_start(message): 
 bot.send_gift(message.chat.id,5170521118301225164) 
bot.infinity_polling() 

@bot.message_handler(commands=['start7'])  
def handle_start(message): 
 bot.send_gift(message.chat.id,5170690322832818290) 
bot.infinity_polling() 




@bot.message_handler(commands=['start8'])  
def handle_start(message): 
 bot.send_gift(message.chat.id,5170521118301225164) 
bot.infinity_polling() 

@bot.message_handler(commands=['start9'])  
def handle_start(message): 
 bot.send_gift(message.chat.id,5170690322832818290) 
bot.infinity_polling()


687ab9d0b572d475199276.jpeg
  • Вопрос задан
  • 252 просмотра
Подписаться 2 Простой 1 комментарий
Пригласить эксперта
Ответы на вопрос 1
@Nick331045
Спасибо тебе SAFDADWAEAWE за токен бота и id чатов

Один пользователь может получить подарок от бота только один раз
После получения подарка бот не может отправить этому же пользователю другой подарок
Бот имеет общее ограничение на количество подарков, которые он может отправить
Возможны временные ограничения (например, на количество подарков в день)
infinity_polling() нужно вызывать только один раз в конце скрипта
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы