Skip to content

Commit

Permalink
chore: Update telegraf
Browse files Browse the repository at this point in the history
  • Loading branch information
mindrunner committed Mar 20, 2024
1 parent bfb9400 commit 2bfcf6f
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 39 deletions.
46 changes: 23 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"pg": "^8.11.3",
"pretty-error": "^4.0.0",
"superagent": "^8.1.2",
"telegraf": "^4.15.3",
"telegraf": "^4.16.3",
"typeorm": "^0.3.20",
"winston": "^3.12.0"
},
Expand Down
4 changes: 1 addition & 3 deletions src/lib/telegram/response/already-registered.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import { Message } from 'telegraf/types'

import { ContextMessageUpdate } from '../context-message-update'

import TextMessage = Message.TextMessage

export const alreadyRegistered = (ctx: ContextMessageUpdate): Promise<TextMessage> => ctx.reply(`
export const alreadyRegistered = (ctx: ContextMessageUpdate): Promise<Message.TextMessage> => ctx.reply(`
Looks like you are already registered and ready to go!
`)
4 changes: 1 addition & 3 deletions src/lib/telegram/response/auth-pending.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ import dayjs from '../../../dayjs'
import { Wallet } from '../../../db/entities'
import { ContextMessageUpdate } from '../context-message-update'

import TextMessage = Message.TextMessage

export const authPending = (ctx: ContextMessageUpdate, wallet: Wallet): Promise<TextMessage> => {
export const authPending = (ctx: ContextMessageUpdate, wallet: Wallet): Promise<Message.TextMessage> => {
const authExpire = dayjs().diff(wallet.authExpire, 'second')

return ctx.reply(`
Expand Down
4 changes: 1 addition & 3 deletions src/lib/telegram/response/unauthorized.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import { Message } from 'telegraf/types'

import { ContextMessageUpdate } from '../context-message-update'

import TextMessage = Message.TextMessage

export const unauthorized = (ctx: ContextMessageUpdate): Promise<TextMessage> => ctx.reply(`
export const unauthorized = (ctx: ContextMessageUpdate): Promise<Message.TextMessage> => ctx.reply(`
Huh, who are you? Please authorize first!
`)
4 changes: 1 addition & 3 deletions src/lib/telegram/response/unknown-wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import { Message } from 'telegraf/types'

import { ContextMessageUpdate } from '../context-message-update'

import TextMessage = Message.TextMessage

export const unknownWallet = (ctx: ContextMessageUpdate): Promise<TextMessage> => ctx.reply(`
export const unknownWallet = (ctx: ContextMessageUpdate): Promise<Message.TextMessage> => ctx.reply(`
Could not find wallet. Please send some ATLAS first!
`)
5 changes: 2 additions & 3 deletions src/lib/telegram/response/wrong-param-count.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ import { Message } from 'telegraf/types'

import { ContextMessageUpdate } from '../context-message-update'

import TextMessage = Message.TextMessage

export const wrongParamCount = (ctx: ContextMessageUpdate, message: string): Promise<TextMessage> => ctx.reply(message)
export const wrongParamCount =
(ctx: ContextMessageUpdate, message: string): Promise<Message.TextMessage> => ctx.reply(message)

0 comments on commit 2bfcf6f

Please sign in to comment.