import { chatMembers } from "https://deno.land/x/grammy_chat_members@v1.0.12/mod.ts";
Creates a middleware that keeps track of chat member updates
NOTE: You need to manually enable chat_members
update type for this to work
Example usage:
const bot = new Bot("<YOR_TELEGRAM_TOKEN>");
const adapter = new MemorySessionStorage();
bot.use(chatMembers(adapter));
bot.start({ allowed_updates: ["chat_member"] });
Parameters
adapter: StorageAdapter<ChatMember>
Storage adapter responsible for saving members information
optional
options: Partial<ChatMembersOptions> = [UNSUPPORTED]Configuration options for the middleware