Skip to content

Commit 02572e3

Browse files
authored
Fixup poll typings (telegraf#1000)
* fix(typings): ctx.poll is optional * style(typings): sort poll alphabetically into the update shortcuts
1 parent b94ab73 commit 02572e3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

typings/context.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ export declare class TelegrafContext {
2222
match?: RegExpExecArray | null
2323
me?: string
2424
message?: tt.IncomingMessage
25+
poll?: tt.Poll
26+
pollAnswer?: tt.PollAnswer
2527
preCheckoutQuery?: tt.PreCheckoutQuery
2628
shippingQuery?: tt.ShippingQuery
27-
poll: tt.Poll
28-
pollAnswer: tt.PollAnswer
2929

3030
constructor(
3131
update: tt.Update,

0 commit comments

Comments
 (0)