method Context.prototype.hasChatTypeimport { Context } from "https://deno.land/x/grammy@v1.10.1/context.ts"; hasChatType<T extends Chat["type"]>(chatType: MaybeArray<T>): this is ChatTypeContext<this, T>Returns true if this context object belongs to a chat with the given chat type, and false otherwise. This uses the same logic as bot.chatType. Type ParametersT extends Chat["type"]ParameterschatType: MaybeArray<T>The chat type to match Returnsthis is ChatTypeContext<this, T>