Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 389f6c8

Browse files
Merge pull request avinashkranjan#2689 from avinashkranjan/deepsource-transform-fffbacb8
format code with autopep8
2 parents c4e5793 + 84b9271 commit 389f6c8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎Telegram Bot code/script.py‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,21 @@
44
BOT_TOKEN = 'YOUR_BOT_TOKEN'
55

66
# Define the function for the /start command
7+
8+
79
def start(update, context):
8-
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?")
912

1013
# Define the function to respond to user messages
14+
15+
1116
def reply_to_message(update, context):
1217
user_message = update.message.text
1318
response = f"You said: {user_message}"
1419
update.message.reply_text(response)
1520

21+
1622
def main():
1723
updater = Updater(token=BOT_TOKEN, use_context=True)
1824
dispatcher = updater.dispatcher

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /