We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14d473a commit 84b9271Copy full SHA for 84b9271
Telegram Bot code/script.py
@@ -4,15 +4,21 @@
4
BOT_TOKEN = 'YOUR_BOT_TOKEN'
5
6
# Define the function for the /start command
7
+
8
9
def start(update, context):
- update.message.reply_text("Hello! I'm your Telegram bot. How can I assist you?")
10
+ update.message.reply_text(
11
+ "Hello! I'm your Telegram bot. How can I assist you?")
12
13
# Define the function to respond to user messages
14
15
16
def reply_to_message(update, context):
17
user_message = update.message.text
18
response = f"You said: {user_message}"
19
update.message.reply_text(response)
20
21
22
def main():
23
updater = Updater(token=BOT_TOKEN, use_context=True)
24
dispatcher = updater.dispatcher
0 commit comments