harshil21 · GitHub

@harshil21

Copy link Copy Markdown

Member

@harshil21

github-actions[bot]

Copy link Copy Markdown

Choose a reason for hiding this comment

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

Hey there. Relax, I am just a little warning for the maintainers to release directly after merging your PR, otherwise we have broken examples and people might get confused :)

@Poolitzer Telegram GithubBot Revised

Copy link Copy Markdown

Member

@harshil21 since you are changing examples anyway, can you throw in a ForceReply somewhere? I think an example of that is good for people

@harshil21

@harshil21 harshil21 changed the title Fix some examples Fix & improve some examples

Mar 23, 2021

@harshil21

Bibo-Joshi

Copy link Copy Markdown

Member

Choose a reason for hiding this comment

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

Thanks for the improvements! Left a comment. Also you mentioned:

  • Handle empty inline queries without raising errors.

but I don't see that? If you want to add that, maybe an idea would be to use switch_pm_text to display a help message similarly to what rulesbot does. That feature is also little known.

@harshil21

Copy link Copy Markdown

Member Author

but I don't see that?

Oops, I guess I discarded those changes by mistake. It was if query == ""; return. The exception raised when it's empty is
Can't parse inline query result: input message content is not specified.

maybe an idea would be to use switch_pm_text to display a help message similarly to what rulesbot does.

So should I also put in switch_pm_{text, parameter}, along with the fix above?

@Bibo-Joshi

Copy link Copy Markdown

Member

but I don't see that?

Oops, I guess I discarded those changes by mistake. It was if query == ""; return. The exception raised when it's empty is
Can't parse inline query result: input message content is not specified.

Jup, makes sense :)

maybe an idea would be to use switch_pm_text to display a help message similarly to what rulesbot does.

So should I also put in switch_pm_{text, parameter}, along with the fix above?

If you like to. Not important, just an idea ;)

@Bibo-Joshi

@Bibo-Joshi

Read the original on github.com ↗