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

Can't Get Group Chat Title #12

Closed
Navid-Sa opened this issue Jul 29, 2015 · 1 comment
Closed

Can't Get Group Chat Title #12

Navid-Sa opened this issue Jul 29, 2015 · 1 comment
Labels
💗 help wanted Up for grabs. We would accept a PR to help resolve this issue

Comments

@Navid-Sa
Copy link

Hi

I was wondering that how can I get the group chat title in telegrom.bot

https://core.telegram.org/bots/api#groupchat

thanks

@MrRoundRobin
Copy link
Member

Can you try this:

if (update.Message.Chat.GetType() == typeof(GroupChat))
{
    var title = ((GroupChat)update.Message.Chat).Title;
}

or

var chat = update.Message.Chat as GroupChat;
if (chat.Title != null)
{
    var title = chat.title;
}

Maybe i could impliment something linke Message.ChatType like the Message.Type

@MrRoundRobin MrRoundRobin added the 💗 help wanted Up for grabs. We would accept a PR to help resolve this issue label Aug 20, 2015
MrRoundRobin added a commit that referenced this issue Aug 29, 2015
-fixed issue #30
-added ConversationType (see #12)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💗 help wanted Up for grabs. We would accept a PR to help resolve this issue
Projects
None yet
Development

No branches or pull requests

2 participants