method Context.prototype.hasChatTypeimport { Context } from "https://dotland.deno.dev/x/grammy@v1.10.0/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>