Skip to content

Commit 84b9271

Browse files
style: format code with autopep8
Format code with autopep8 This commit fixes the style issues introduced in eec9f8b according to the output from Autopep8. Details: https://app.deepsource.com/gh/avinashkranjan/Amazing-Python-Scripts/transform/b39a4db3-7ccc-4cf0-9bf2-41fb6c481834/
1 parent 14d473a commit 84b9271

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)