method Context.prototype.hasChatTypeimport { Context } from "https://dotland.deno.dev/x/grammy@v1.15.2/context.ts"; hasChatType<T extends Chat["type"]>(chatType: MaybeArray<T>): this is ChatTypeContextCore<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 ChatTypeContextCore<T>