Skip to content

AttributedHandlers

MohammadReza edited this page Jul 2, 2021 · 4 revisions

Setup your handlers simply using attributes.

There are two type of attributes in this library:

  • InComingHandler attributes
  • Filter attributes

Attributes can only be set on public static callback functions, if you don't know how is a callback function please read here

For each incoming update type there is an attribute:

  • [InComingMessageAttribute] -> Message
  • [InComingCallbackQueryAttribute] -> CallbackQuery
  • [InComingInlineQueryAttribute] -> InlineQuery
  • [InComingChosenInlineResultAttribute] -> ChosenInlineResult
  • [InComingChatMemberAttribute] -> ChatMemberUpdated
  • [InComingPollAttribute] -> Poll
  • [InComingPollAnswerAttribute] -> PollAnswer
  • [InComingShippingQueryAttribute] -> ShippingQuery
  • [InComingPreCheckoutQueryAttribute] -> PreCheckoutQuery

Flamingo Framework written in pure c#, install from Nuget

Clone this wiki locally