Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API 6.3 #1733

Merged
merged 4 commits into from Nov 18, 2022
Merged

API 6.3 #1733

merged 4 commits into from Nov 18, 2022

Conversation

MKRhere
Copy link
Member

@MKRhere MKRhere commented Nov 12, 2022

Canary release for testing: telegraf@4.11.0-canary.1

@KnorpelSenf
Copy link
Collaborator

So that means that ctx.sendMessage works and ctx.telegram.sendMessage errors?

@Archakov06
Copy link

image

ctx.telegram.sendMessage works fine with new parameter message_thread_id, but need update types

@MKRhere MKRhere merged commit d1d223e into v4 Nov 18, 2022
@MKRhere MKRhere deleted the feat-api-6.3 branch November 18, 2022 21:09
@MKRhere
Copy link
Member Author

MKRhere commented Nov 18, 2022

@Archakov06 This released to stable as v4.11.0, feel free to update now :)

@AndrewAntoniuk
Copy link

Is forwardMessage broken now? I can't specify messageId

@AndrewAntoniuk
Copy link

AndrewAntoniuk commented Nov 19, 2022

Fixable by disabling typescript, though 😅
image

@MKRhere
Copy link
Member Author

MKRhere commented Nov 20, 2022

@AndrewAntoniuk

ctx.forwardMessage forwards the current message (ctx.message) to the given chatId. All Context shorthands implicitly assume current chat and message where applicable. The right way to do what you needed is

ctx.telegram.forwardMessage(chatId, ctx.chat.id, cardMessageId);

@AndrewAntoniuk
Copy link

@MKRhere alright, thanks, then I was just wrong 😞
BTW, are there full-docs, with examples maybe, for telegraf? (I have seen autogenerated ones for the latest and I believe outdated ones for 3.x.x)
For me a little bit hard to predict what to expect where 😢

@MKRhere
Copy link
Member Author

MKRhere commented Nov 20, 2022

@AndrewAntoniuk I'm working on new docs at https://github.com/feathers-studio/telegraf-docs. It's far from complete, but it is something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants