How can a Telegram Bot figure out that user has opened the chat window? -


how can bot send message user, when user opens chat.

example:

  1. user has added telegram bot list of contacts , started conversation
  2. later on, user opens chat window bot
  3. bot "sees" user has opened chat window, hasn't written yet
  4. bot should "hello, can with?" user

is there event/trigger step #3 in telegram bot api?

no. there no trigger each time user opens chat window first time below:

when opens chat bot "for first time", automatically telegram sends /start command bot .it ordinary command when user sends command or write /start , send, bot can catch , hello or commands user. user opens chat window bot, telegrams send message automatically bot containing info user , on.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -