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