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

There are flags we do not have #61

Open
danbilokha opened this issue Apr 11, 2020 · 0 comments
Open

There are flags we do not have #61

danbilokha opened this issue Apr 11, 2020 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers Low prio Low priority feature
Milestone

Comments

@danbilokha
Copy link
Owner

Library either import {flag} from 'country-emoji' doesn't have all flags or we just give it in a wrong format. Figure it out.

Debugging hints. Past following code

const single = countries
                .map(c => flag(c.name))
                .filter(v => !!v) // Without this line you could see that some flags are missing 
                .join('|');

            console.log('single', single);
            bot.sendMessage(
                384590146,
                single
            );

in telegram\index.ts
inside

getAvailableCountries()
        .then((countries: Array<Country>) => {
@danbilokha danbilokha added bug Something isn't working good first issue Good for newcomers Low prio Low priority feature labels Apr 11, 2020
@danbilokha danbilokha added this to the nice to have milestone Apr 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers Low prio Low priority feature
Projects
None yet
Development

No branches or pull requests

1 participant