isTheSameChat method
Returns true if the chatId
passed matches the current chat's ID.
Implementation
bool isTheSameChat(ID chatId) {
if (chatId is ChatID) return chatId == getId();
if (chatId is SupergroupID || chatId is ChannelID) {
return chatId == getChannelId();
}
return false;
}