in db to send message. storing chat id didnt worked its giving peer id invalid error even if bot is admin in that chat (only while session file is recreated) is there any convineint way to do this? tried to send messsage with chat link it didnt work either error: bot method invalid. Anyone has any better coices?
Tell user to start the bot once, it will solve peer I'd error
id alone is not enough. you need to store the access hash too, or make sure to back up your .session files or don't logout from them. and a good bot is a bot that purely deals with events. unless you need message ids in specific chats
Обсуждают сегодня