telebot

How do I connect my telegram bot (telebot) to PostgreSQL url

How do I connect my telegram bot (telebot) to PostgreSQL url Question: I would like to learn how to connect my telegram bot to database url so that I store bot users, date of join and user information. Help me through that tutorial. How to connect a my telegram bot to PostgreSQL/database url. #code from …

Total answers: 1

Not called register_next_step_handler

Not called register_next_step_handler Question: I’m just beginner at python. I need to create a bot in telegram. I ran into a problem that no register_next_step_handler is called in a_handler. It seems that I need to send a new message to the user in order to pass a new message parameter, BUT This is nonsense. It …

Total answers: 1

Python telegram bot, how to store and show users data for each users?

Python telegram bot, how to store and show users data for each users? Question: Hello I am new one for python and telegram api so i have some questions. I am creating telegram bot(python telegram api) with users profile. I have created database(mysql.connector) and store there all users info after registration. Also i have created …

Total answers: 3

How to make user hyperlink in python telegram bot?

How to make user hyperlink in python telegram bot? Question: Stack overflow! I’m using telebot module for my telegram bot (from telebot import types). I want to send messages to telegram users. In this messages I want to paste a link to another telegram users. My code is: linked_user = ‘[username](tg://user?id=999999999)’ bot.send_message( admin_chat_id, f'{linked_user}’, parse_mode=’MarkdownV2′, …

Total answers: 2