<header>
<div class="logo">
<img>
</div>
<div class="navigation">
... link etc
</div>
</header>
import telebot
TOKEN =
bot = telebot.TeleBot(TOKEN)
@bot.message_handler(commands=['start', 'help'])
def send_welcome(message):
bot.reply_to(message, "Howdy, how are you doing?")
print(message.chat.id)
chat_id = '105674243' # <- paste id
bot.send_message(chat_id, 'some text')
bot.polling()
@bot.message_handler(commands=['start', 'help'])
def send_welcome(message):
bot.reply_to(message, "Howdy, how are you doing?")@bot.message_handler(func=lambda m: True)
def echo_all(message):
bot.reply_to(message, message.text)
bot.polling()@bot.message_handler(func=lambda m: True)
def echo_all(message):
chat_id = message.chat.id
print(chat_id)
bot.send_message(chat_id, 'some text')
В примерах обычно добавляют $(".swipe-area") (на весь экран которая), который и используют, но можно и document