Skip to content

Commit

Permalink
Merge branch 'master' of github.com:nerzh/telegram-vapor-bot
Browse files Browse the repository at this point in the history
  • Loading branch information
nerzh committed Apr 14, 2023
2 parents 5d02fe1 + 0e8128e commit fc00739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ import TelegramVaporBot
final class TelegramController: RouteCollection {

func boot(routes: Vapor.RoutesBuilder) throws {
routes.get("telegramWebHook", use: telegramWebHook)
routes.post("telegramWebHook", use: telegramWebHook)
}
}

Expand Down

7 comments on commit fc00739

@griffenk
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

after the last update 2.1.0 async error appears.
Captura de pantalla 2023-04-17 a las 11 12 46

@Butanediol
Copy link

@Butanediol Butanediol commented on fc00739 Apr 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's fine to just move it into Task{}, or make configure() async.

But the docs do need some updates tho.

@nerzh
Copy link
Owner Author

@nerzh nerzh commented on fc00739 Apr 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Butanediol thanx)

@griffenk I updated readme, please check this https://github.com/nerzh/telegram-vapor-bot#setup

@nerzh
Copy link
Owner Author

@nerzh nerzh commented on fc00739 Apr 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also I added TGBaseHandler for all updates

@Butanediol
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also I added TGBaseHandler for all updates

I also added a similar handler in my bot before 2.1.0.
TGHandlerPrtcl is really straightforward. But I dont get what public var id and public var name is for?

@nerzh
Copy link
Owner Author

@nerzh nerzh commented on fc00739 Apr 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nerzh
Copy link
Owner Author

@nerzh nerzh commented on fc00739 Apr 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also I added TGBaseHandler for all updates

I also added a similar handler in my bot before 2.1.0. TGHandlerPrtcl is really straightforward. But I dont get what public var id and public var name is for?

maybe this is to display an error, or maybe the name and id are an artifacts and they need to be deleted from protocol )

Please sign in to comment.