difference between Context and update in function for send message #2365
Unanswered
bardiadelagah
asked this question in
Q&A
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hi. I have a code like bellow for /start command.
''''''''''''''''''''''''''''''''''''''''''''''''
def start(update, context):
chat_id = update.message.chat_id
update.message.reply_text("hi user")
context.bot.sendMessage(chat_id=chat_id, text='hi user')
start_command = CommandHandler('start', start)
updater.dispatcher.add_handler(start_command)
''''''''''''''''''''''''''''''''''''''''''''''''
I now bot Context and update can send message to user but I can't figuer out what difference between Context and update for send massage to uesr?
I search in wiki and doc but can not find any thing
Beta Was this translation helpful? Give feedback.
All reactions