You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all i want to say, thank your for the great framework you offer us for free.
I have a C# and Python background and started using javascript about 6 month ago. I build some React apps and some express backends. I have to say the similarity to express, made it easy to dive in. Great work.
I started using Typescript just a few days ago and I am trying to build a telegraf bot. Everything worked like a charm untill now. I was building a state machine to manage my bot. I am using a custom Context and had no issues so far. But now I am trying to pass a MatchedContext with the update type 'chat_member' to my state machine. I went into the source code and found that type in the composer script. But i can't figure out how to use. First of all it is not beeing exported so tried to change the library so that i can import it. But still i dont know how to indicate the type of MatchedContext<Context, 'chat_member'> to my state machine. of course i could use an any type, but i would like to use the specific type if it is at all possible.
I would be really thankfull if anyone can give me some adivce.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
First of all i want to say, thank your for the great framework you offer us for free.
I have a C# and Python background and started using javascript about 6 month ago. I build some React apps and some express backends. I have to say the similarity to express, made it easy to dive in. Great work.
I started using Typescript just a few days ago and I am trying to build a telegraf bot. Everything worked like a charm untill now. I was building a state machine to manage my bot. I am using a custom Context and had no issues so far. But now I am trying to pass a MatchedContext with the update type 'chat_member' to my state machine. I went into the source code and found that type in the composer script. But i can't figure out how to use. First of all it is not beeing exported so tried to change the library so that i can import it. But still i dont know how to indicate the type of MatchedContext<Context, 'chat_member'> to my state machine. of course i could use an any type, but i would like to use the specific type if it is at all possible.
I would be really thankfull if anyone can give me some adivce.
Beta Was this translation helpful? Give feedback.
All reactions